Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement wildcard resolution into the action #93

Closed
wants to merge 23 commits into from

Conversation

xhyrom
Copy link
Collaborator

@xhyrom xhyrom commented Jul 28, 2024

Resolves #37

https://bun.sh/download is not used anymore

@xhyrom xhyrom marked this pull request as ready for review July 29, 2024 19:21
token:
required: false
default: ${{ github.token }}
description: "Personal access token (PAT) used to fetch tags from oven-sh/bun repository"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's more to access api.github.com with the per token rate limit instead of the per IP one. The documentation should mention that is recommended for user using wildcard or range version.

`https://api.github.com/repos/oven-sh/bun/actions/runs/${run.id}/artifacts`,
{
headers: {
"Authorization": `Bearer ${options.token}`,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the token is not defined in the configuration? The headers field add could be make conditional

@Jarred-Sumner
Copy link
Contributor

Thank you for this, but I think we should fix the endpoint instead of changing the code in the setup action. It’s best to keep the action as small as possible.

@xhyrom
Copy link
Collaborator Author

xhyrom commented Jul 30, 2024

Thank you for this, but I think we should fix the endpoint instead of changing the code in the setup action. It’s best to keep the action as small as possible.

I don't want to be rude but I've been requesting a fix in our private staff Discord channel for a while with no response. People are asking for it in the issue #37 without any response from the core team. Since this issue is affecting people, I decided to finally resolve this issue even though I'm on vacation. You just closed this pull request and only said that it's better to fix the API, but when can we expect this issue to be resolved? I transferred this action to the oven-sh organisation because you asked for it. I'm happy to have been able to do so, but the API problems are making it harder for me to maintain setup-bun action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version selectors 1.x/1.0.x result in 400/404 response errors on install
3 participants